package aloyii.demo2.before;

/**
 * @Author yajing zhu
 * @Date 2024/10/21 14:12
 * @Version 1.0
 * @注释： 正方形类
 */
public class Square extends Rectangle {
    @Override
    public void setLength(double length) {
        super.setLength(length);
        super.setWidth(length);
    }
    
    @Override
    public void setWidth(double width) {
        super.setWidth(width);
        super.setLength(width);
    }
}
